package com.ynet.middleground.mobile.approve.request;

import com.ynet.middleground.approve.bean.CommentFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName RejectTaskReq
 * @Description 驳回任务请求类
 * @Author liwq
 * @Date 2021/3/30 10:29
 * @Version 1.0
 */
@Data
@ApiModel(value = "驳回任务请求信息")
public class RejectTaskReq implements Serializable {

    private static final long serialVersionUID = 5814108557756545185L;

    @NotBlank(message = "任务ID不能为空")
    @ApiModelProperty(value = "任务ID", required = true)
    private String taskId;

    @NotBlank(message = "流程实例ID不能为空")
    @ApiModelProperty(value = "流程实例ID", required = true)
    private String processInstanceId;

    @NotBlank(message = "审批处理意见不能为空")
    @ApiModelProperty(value = "审批处理意见", required = true)
    private String comment;

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID", required = true)
    private Integer userId;

    /**
     * 0: 驳回修改， 1：不同意
     */
    @NotNull(message = "驳回类型（驳回原因）不能为空")
    @ApiModelProperty(value = "驳回类型（驳回原因）", required = true)
    private Integer type;

    @ApiModelProperty(value = "审批处理意见附件列表")
    private List<CommentFile> commentFiles;

}
